package com.blb.test.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.test.entity.Menu;
import com.blb.test.service.IMenuService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2019-01-18
 */
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController {

	@Autowired
	private IMenuService nenuService;
	
	@RequestMapping("page")
	public IPage<Menu> page(long pageNo, long pageSize){
		Page<Menu> page = new Page<Menu>(pageNo, pageSize);
		return nenuService.page(page);
	}
}

